package com.longrise.android.byjk.plugins.course.tiku;

import android.graphics.Bitmap;
import android.webkit.WebView;

import com.longrise.common.base.web.BaseWebActivity;
import com.longrise.common.base.web.BaseWebClient;

/**
 * Created by callxkj on 2017/10/29.
 * 题库webclient
 */

public class TikuWebClient extends BaseWebClient {

    public TikuWebClient(BaseWebActivity activity) {
        super(activity);
    }

    @Override
    public void onPageStarted(WebView view, String url, Bitmap favicon) {
        super.onPageStarted(view, url, favicon);
        mActivity.hideToolbarRightIvTitle(); //题库中只有一个页面显示右上角的日历图片
    }

    @Override
    public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);
        mActivity.setToolbarTitle(view.getTitle());
    }
}
